//
// File  : Customer.cpp
// Team  : Dangling Pointers
// Class : Software Testing
//
// Customer class definitions
//

// Josh made a comment!!

#include "Customer.h"
#include <iostream>
#include <iomanip>


Customer::Customer(const std::string& name, const std::string& phone, const std::string& email)
	: m_name(name)
	, m_phoneNumber(phone)
	, m_email(email)
	, m_flight("")
{}

//
// Accessors
//
const std::string& Customer::getName() const
{
	return m_name;
}

const std::string& Customer::getPhoneNumber() const
{
	return m_phoneNumber;
}

const std::string& Customer::getEmail() const
{
	return m_email;
}

const std::string& Customer::getFlight() const
{
	return m_flight;
}


//
// Modifiers
//
void Customer::setPhoneNumber(const std::string& val)
{
	m_phoneNumber = val;
}

void Customer::setEmail(const std::string& val)
{
	m_email = val;
}

void Customer::setFlight(const std::string& val)
{
	m_flight = val;
}

//
// print : void
//
// method displays customer info, including name, phone number, email
// and total air mileage, to the console
//
void Customer::print() const
{
	std::cout << std::left 
		<< std::setw(20) << getName() 
		<< std::setw(15) << getPhoneNumber() 
		<< std::setw(25) << getEmail() 
		<< getFlight() 
		<< std::endl;
}
